package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/receivingTask")
public class WmsReceivingTaskRouter {
    @Autowired
    SysMenuService menuService;
    //收货任务页面
    @RequestMapping(value = "/receivingTask/{menu}")
    public  String  toreceivingTask(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "task/wmsReceivingTask/receivingTask";
    }
    /*跳转到生成拣货任务页面*/
    @RequestMapping(value = "/createrRceivingTask")
    public String createrRceivingTask(String id,String asnbh,String gysmc,String mpzt,String yxj, Model model) {
        System.out.println("ssydid："+id);
        model.addAttribute("id",id);
        model.addAttribute("asnbh",asnbh);
        model.addAttribute("gysmc",gysmc);
        model.addAttribute("mpzt",mpzt);
        model.addAttribute("yxj",yxj);
        return "task/wmsReceivingTask/createRceivingTask";
    }
}
